import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import { createPinia } from 'pinia'  
import piniaPluginPersist from 'pinia-plugin-persist'//引入pinia数据持久化插件
 


import router from './router/router.js'
import axios from './axios/axiosInstance.js'

const app = createApp(App)

app.use(ElementPlus)
app.use(router)
const pinia = createPinia();
app.use(pinia)
app.use(pinia.use(piniaPluginPersist))//安装插件// 使用piniaPluginPersist

app.config.globalProperties.$axios= axios; //全局配置axios
app.mount('#app')